#ifndef __ALTAIR_SYSTEM_SYSTEM_H__
#define __ALTAIR_SYSTEM_SYSTEM_H__

/**
 *  system_get_main_addr()
 *  zjisti adresu funkce main() v jadru
 */
int system_get_main_addr() {
  int result;
  int r_bp;

  asm push bp;
  asm pop r_bp;

  asm mov ax, 0xA0;
  asm mov bx, r_bp;
  asm int OSINT;

  return result;
}

/**
 *  system_get_api_count()
 *  zjisti, kolikrat se jiz volala nejaka API
 */
unsigned long long system_get_api_count() {
  unsigned long long result;
  int r_bp;

  asm push bp;
  asm pop r_bp;

  asm mov ax, 0xA1;
  asm mov bx, r_bp;
  asm int OSINT;

  return result;
}

#endif
